﻿@using BrnMall.Manager.Manager.Store
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>小程序会员中心</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome  =1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link href="/components/layui/layui.css" rel="stylesheet" media="all">
    <link href="/admin_store/css/admin_index.css" rel="stylesheet" />
    <script src="/admin_store/scripts/jquery.js"></script>
    <script src="http://wxpassport.711688.net.cn/Files/Scripts/V3/ajax-data.js"></script>
    <script src="http://wxpassport.711688.net.cn/Files/Scripts/V3/dialog.js"></script>
    <script src="/admin_store/scripts/admin_index.js?@DateTime.Now.Ticks"></script>
</head>
<body class="layui-layout-body">

    <div class="layui-layout layui-layout-admin">
        <!--顶部logo-->
        <div class="admin-header">
            <div class="layui-header">
                <div class="layui-logo">
                    <a href="http://wxpassport.711688.net.cn/admin_index.aspx" title="后台首页">
                        <img src="/admin_store/images/home/logo.png">
                    </a>
                </div>
                <ul class="layui-nav layui-layout-right">
                    <li class="layui-nav-item">
                        <a class="memu-redirect user-logo" data-url="/wxPassport/union/myInfo.aspx">
                            <img src="/admin_store/images/home/03.png" id="admin-cro-item-imgs" class="layui-nav-img">
                            <span id="nickName" class="nickName"></span>
                        </a>
                        <dl class="layui-nav-child">
                            <dd menu-li="0"><a class="memu-redirect" data-url="/wxPassport/union/myInfo.aspx">会员信息</a></dd>
                            <dd menu-li="0"><a class="memu-redirect" data-url="/wxPassport/userinfo/changepassword.aspx">修改密码</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item"><a href="http://wxpassport.711688.net.cn/ajax/login.aspx?faction=loginout&backurl=http%3a%2f%2fpassport.711688.com.cn%2fajax%2flogin.aspx%3ffaction%3dloginout%26upath%3d3">退出</a></li>
                </ul>
            </div>
        </div>

        <!-- 导航栏 -->
        <div class="content-title-out">
            <div class="content-title">
                <div class="content-title-item gtype_15 gtype_Q3 hide" data-index="1">
                    <img src="/admin_store/images/home/8.png">
                    <span>微信小程序</span>
                </div>
                <div class="content-title-item gtype_18 hide" data-index="2">
                    <img src="/admin_store/images/home/9.png">
                    <span>小程序分销</span>
                </div>
                <div class="content-title-item gtype_20 hide" data-index="3">
                    <img src="/admin_store/images/home/10.png">
                    <span>小程序推广</span>
                </div>
                <div class="content-title-item gtype_20 gtype_Q3 hide" data-index="4">
                    <img src="/admin_store/images/home/11.png">
                    <span>公众号运营</span>
                </div>
                <div class="content-title-item gtype_20 hide" data-index="5">
                    <img src="/admin_store/images/home/12.png">
                    <span>朋友圈推广</span>
                </div>
                <div class="content-title-item gtype_20 gtype_Q3 hide" data-index="6">
                    <img src="/admin_store/images/home/13.png">
                    <span>小程序网站</span>
                </div>
                <div class="content-title-item nav_agent hide" data-index="7">
                    <img src="/admin_store/images/home/14.png">
                    <span>代理管理</span>
                </div>
            </div>
        </div>

        <div class="admin-content">
            <!-- 左侧菜单 -->
            <div class="layui-side">
                <div class="layui-side-scroll">
                    <!--小程序菜单-->
                    <div class="nav-list-rank nav_1 hide">
                        <ul class="layui-nav layui-nav-tree nav-list">
                            <li class="layui-nav-item layui-nav-itemed" menu-ul="0">
                                <a class="" href="javascript:;"><img src="/admin_store/images/home/15.png" />首页定制</a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/weapp/preview">首页预览</a></dd>
                                    <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/store/widgetconfiglist?code=index_banner">顶部轮播</a></dd>
                                    <dd menu-li="2"><a class='memu-redirect' data-url="/storeadmin/store/widgetconfiglist?code=index_nav_icon">分类导航</a></dd>
                                    <dd menu-li="3"><a class='memu-redirect' data-url="/storeadmin/store/widgetconfiglist?code=index_product">商品列表</a></dd>
                                    <dd menu-li="4"><a class='memu-redirect' data-url="/storeadmin/store/IndexPictureWidgetConfigList">图片组件</a></dd>
                                    <dd menu-li="5"><a class='memu-redirect' data-url='/storeadmin/weapp/StoreAppList'>底部导航</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="1">
                                <a href="javascript:;"><img src="/admin_store/images/home/16.png" />商品管理</a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/product/AddProduct_New">添加商品</a></dd>
                                    <!--<dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/product/addsku">添加SKU</a></dd>-->
                                    <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/product/onsaleproductlist">在售商品</a></dd>
                                    <dd menu-li="2"><a class='memu-redirect' data-url="/storeadmin/product/outsaleproductlist">下架商品</a></dd>
                                    <dd menu-li="3"><a class='memu-redirect' data-url="/storeadmin/product/timeproductlist">定时商品</a></dd>
                                    <dd menu-li="4"><a class='memu-redirect' data-url="/storeadmin/product/recyclebinproductlist">回收站</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="2">
                                <a href="javascript:;"><img src="/admin_store/images/home/17.png" />订单管理</a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/order/orderlist">订单列表</a></dd>
                                    <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/order/refundlist">退款列表</a></dd>
                                    <dd menu-li="2"><a class='memu-redirect' data-url="/storeadmin/order/DirectPayOrderList">当面付列表</a></dd>
                                    <dd menu-li="3"><a class='memu-redirect' data-url="/storeadmin/order/afterservicelist">售后服务</a></dd>
                                    <dd menu-li="4"><a class='memu-redirect' data-url="/storeadmin/order/printsettinglist">打印机设置</a></dd>
                                    <dd menu-li="5"><a class='memu-redirect' data-url="/storeadmin/order/autoprintlist">自动打印</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="3">
                                <a href="javascript:;"><img src="/admin_store/images/home/18.png" />促销活动</a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/promotion/singlepromotionlist">单品促销</a></dd>
                                    <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/promotion/buysendpromotionlist">买送促销</a></dd>
                                    <dd menu-li="2"><a class='memu-redirect' data-url="/storeadmin/promotion/giftpromotionlist">赠品促销</a></dd>
                                    <dd menu-li="3"><a class='memu-redirect' data-url="/storeadmin/promotion/suitpromotionlist">套装促销</a></dd>
                                    <dd menu-li="4"><a class='memu-redirect' data-url="/storeadmin/promotion/fullsendpromotionlist">满赠促销</a></dd>
                                    <dd menu-li="5"><a class='memu-redirect' data-url="/storeadmin/promotion/fullcutpromotionlist">满减促销</a></dd>
                                    <dd menu-li="6"><a class='memu-redirect' data-url="/storeadmin/coupon/coupontypelist">优惠劵</a></dd>
                                    <dd menu-li="7"><a class='memu-redirect' data-url="/storeadmin/promotion/GroupBuyList">团购活动</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="4">
                                <a href="javascript:;"><img src="/admin_store/images/home/19.png" />内容管理</a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/news/newslist">内容列表</a></dd>
                                    <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/news/newstypelist">内容分类</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="5">
                                <a href="javascript:;"><img src="/admin_store/images/home/20.png" />预约评价</a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/productreview/productreviewlist">商品评价</a></dd>
                                    <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/productappoint/productappointlist">预约列表</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="6">
                                <a href="javascript:;"><img src="/admin_store/images/home/21.png" />会员中心</a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/user/list">会员列表</a></dd>
                                    <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/userrank/list">会员等级</a></dd>
                                    @if (WorkContext.StoreId == 4)
                                    {
                                        <dd menu-li="3" class='li_other'><a class='memu-redirect' data-url="/storeadmin/BusinessCard/UserCardList">会员名片</a></dd>
                                        <dd menu-li="4" class='li_other'><a class='memu-redirect' data-url="/storeadmin/BusinessCard/CardVerifyList">名片认证</a></dd>
                                    }
                                    else
                                    {
                                        <dd menu-li="3" class='li_other hide'><a class='memu-redirect' data-url="/storeadmin/BusinessCard/UserCardList">会员名片</a></dd>
                                        <dd menu-li="4" class='li_other hide'><a class='memu-redirect' data-url="/storeadmin/BusinessCard/CardVerifyList">名片认证</a></dd>
                                    }
                                    <dd menu-li="2" menu-li="0"><a class='memu-redirect' data-url="/storeadmin/admingroup/list">管理员组</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="7">
                                <a href="javascript:;"><img src="/admin_store/images/home/22.png" />报表统计</a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/stat/productstat">商品统计</a></dd>
                                    <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/stat/saleproductlist">销售明细</a></dd>
                                    <dd menu-li="2"><a class='memu-redirect' data-url="/storeadmin/stat/orderstat">订单统计</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="8">
                                <a href="javascript:;"><img src="/admin_store/images/home/23.png" />店铺管理</a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/store/editstore">店铺信息</a></dd>
                                    <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/store/storeclasslist">店铺分类</a></dd>
                                    <dd menu-li="2"><a class='memu-redirect' data-url="/storeadmin/store/storeshiptemplatelist">配送模板</a></dd>
                                    <dd menu-li="3"><a class='memu-redirect' data-url="/storeadmin/store/storewxapp">小程序设置</a></dd>
                                    <dd menu-li="4"><a class='memu-redirect' data-url="/storeadmin/set/credit">积分设置</a></dd>
                                    <dd menu-li="5"><a class='memu-redirect' data-url="/storeadmin/cashitem/list">充值活动</a></dd>
                                    <dd menu-li="6"><a class='memu-redirect' data-url="/storeadmin/cashorder/list">充值记录</a></dd>
                                    <dd menu-li="7"><a class='memu-redirect' data-url="/storeadmin/cash/reportsearch">财务查询</a></dd>
                                    <dd menu-li="8"><a class='memu-redirect' data-url="/storeadmin/store/branchlist?pagesize=50">门店管理</a></dd>
                                    <dd menu-li="9"><a class='memu-redirect' data-url="/storeadmin/Restaurant/DiningTableList">餐位设置</a></dd>
                                    <dd menu-li="10"><a class='memu-redirect' data-url="/storeadmin/Restaurant/LineItemList">排队项设置</a></dd>
                                    <dd menu-li="11"><a class='memu-redirect' data-url="/wxPassport/userinfo/noticeset.aspx">小程序通知</a></dd>
                                    <dd menu-li="12"><a class='memu-redirect' data-url="/wxPassport/appapplication/list.aspx">小程序列表</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="9">
                                <a href="javascript:;"><img src="/admin_store/images/home/24.png" />留言管理</a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/Message/MessageRow">留言列表</a></dd>
                                    <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/Message/CreateDesign">创意定制</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="9">
                                <a href="javascript:;"><img src="/admin_store/images/home/24.png" />微街推</a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/staff/stafflist">部门成员</a></dd>
                                    <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/staff/authorization">员工授权</a></dd>
                                    <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/staff/WorkWechat">企业微信授权</a></dd>
                                    @*<dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/Message/CreateDesign">小程序授权</a></dd>*@
                                </dl>
                            </li>
                            @if (Stores.IsSessionStore(WorkContext.StoreId))
                            {
                                <li class="layui-nav-item" menu-ul="10">
                                    <a href="javascript:;"><img src="/admin_store/images/home/35.png" />外卖配送</a>
                                    <dl class="layui-nav-child">
                                        <dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/Ship/Index">配送方式</a></dd>
                                        <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/Ship/Config">配送设置</a></dd>
                                        <dd menu-li="2"><a class='memu-redirect' data-url="/storeadmin/Ship/RecordList">交易记录</a></dd>
                                        <dd menu-li="3"><a class='memu-redirect' data-url="/storeadmin/Restaurant/DiningTableList">餐位设置</a></dd>
                                        <dd menu-li="4"><a class='memu-redirect' data-url="/storeadmin/Restaurant/LineItemList">排队项设置</a></dd>
                                    </dl>
                                </li>
                            }                            
                        </ul>
                    </div>

                    <!--小程序分销-->
                    @if (StoreInfoManager.CheckDistributor(WorkContext.StoreId))
                    {
                        <div class="nav-list-rank nav_2 hide">
                            <ul class="layui-nav layui-nav-tree nav-list">
                                <li class="layui-nav-item layui-nav-itemed"  menu-ul="0">
                                    <a href="javascript:;"><img src="/admin_store/images/distributor/27.png" />佣金管理</a>
                                    <dl class="layui-nav-child">
                                        <dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/distributor/BrokerageRequestApproveList">申请提现</a></dd>
                                        <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/distributor/BrokerageRequestList">提现记录</a></dd>
                                        <dd menu-li="2"><a class='memu-redirect' data-url="/storeadmin/distributor/BrokerageList">佣金明细</a></dd>
                                    </dl>
                                </li>

                                <li class="layui-nav-item" menu-ul="1">
                                    <a href="javascript:;"><img src="/admin_store/images/distributor/29.png" />分销管理</a>
                                    <dl class="layui-nav-child">
                                        <dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/distributor/DistributorList">分销商列表</a></dd>
                                        <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/distributor/DisGradeList">分销商等级</a></dd>
                                        <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/distributor/DisGradeSet">分销设置</a></dd>
                                    </dl>
                                </li>

                                <li class="layui-nav-item" menu-ul="2">
                                    <a href="javascript:;"><img src="/admin_store/images/distributor/30.png" />代理管理</a>
                                    <dl class="layui-nav-child">
                                        <dd menu-li="0"><a class='memu-redirect' data-url="/storeadmin/distributor/OpenAgent">代理商开通</a></dd>
                                        <dd menu-li="1"><a class='memu-redirect' data-url="/storeadmin/distributor/AgentList">代理商列表</a></dd>
                                        <dd menu-li="2"><a class='memu-redirect' data-url="/storeadmin/distributor/AgentGradeList">代理商等级</a></dd>
                                    </dl>
                                </li>
                            </ul>
                        </div>
                    }
                    <!--小程序推广-->
                    <div class="nav-list-rank nav_3 hide">
                        <ul class="layui-nav layui-nav-tree nav-list">
                            <li class="layui-nav-item layui-nav-itemed" menu-ul="0">
                                <a href="javascript:;"><img src="/admin_store/images/tuiguang/49.png" />产品推广</a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/wxPassport/product/listdyb.aspx?categoryid=0">产品列表</a></dd>
                                    <dd menu-li="1"><a class='memu-redirect' data-url="/wxPassport/keyonline/user_key.aspx?categoryid=0" style="display:none">关键词设置</a></dd>
                                    <dd menu-li="2"><a class='memu-redirect' data-url="/wxPassport/product/add_wx_dyb.aspx?categoryid=0">新建文章</a></dd>
                                    <dd menu-li="3"><a class="memu-redirect" data-url="/wxPassport/Product/listdyb.aspx?categoryid=0&t=2">草稿</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="1">
                                <a href="javascript:;">
                                    <img src="/admin_store/images/tuiguang/50.png" />企业名片
                                </a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/wxPassport/userinfo/CompanyProfile.aspx">企业名片</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="2">
                                <a href="javascript:;">
                                    <img src="/admin_store/images/tuiguang/51.png" />菜单设置
                                </a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/wxPassport/htmldoc/menusetting.html">菜单设置</a></dd>
                                </dl>
                            </li>

                        </ul>
                    </div>

                    <!--公众号运营-->
                    <div class="nav-list-rank nav_4 hide">
                        <ul class="layui-nav layui-nav-tree nav-list">
                            <li class="layui-nav-item layui-nav-itemed" menu-ul="0">
                                <a href="javascript:;">
                                    <img src="/admin_store/images/gongzhonghao/60.png" />文章管理
                                </a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class="memu-redirect" data-url="/wxPassport/Product/listdyb.aspx?categoryid=2&t=3">置顶文章</a></dd>
                                    <dd menu-li="1"><a class="memu-redirect" data-url="/wxPassport/Product/add_wx_dyb.aspx?categoryid=2&t=3">新建文章</a></dd>
                                    <dd menu-li="2"><a class="memu-redirect" data-url="/wxPassport/Product/listdyb.aspx?categoryid=2&t=2">草稿</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="1">
                                <a href="javascript:;">
                                    <img src="/admin_store/images/gongzhonghao/61.png" />自助采集
                                </a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class="memu-redirect" data-url="/wxPassport/Article/ArticleList.aspx?type=keyword&tab=1">关键词采集</a></dd>
                                    <dd menu-li="1"><a class="memu-redirect" data-url="/wxPassport/Article/ArticleList.aspx?type=wx&tab=2">公众号采集</a></dd>
                                    <dd menu-li="2"><a class="memu-redirect" data-url="/wxPassport/Article/ArticleList.aspx?type=link&tab=3">链接采集</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="2">
                                <a href="javascript:;">
                                    <img src="/admin_store/images/gongzhonghao/62.png" />素材库
                                </a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class="memu-redirect" data-url="/wxPassport/Article/ArticleList.aspx">选择文章</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="3">
                                <a href="javascript:;">
                                    <img src="/admin_store/images/gongzhonghao/63.png" />设置中心
                                </a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class="memu-redirect" data-url="/wxPassport/userinfo/pushset.aspx">推送设置</a></dd>
                                    <dd menu-li="1"><a class="memu-redirect" data-url="/wxPassport/userinfo/timeset.aspx">定时设置</a></dd>
                                    <dd menu-li="2"><a class="memu-redirect" data-url="/wxPassport/userinfo/ApiWeixin.aspx">公众号授权</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="4">
                                <a href="javascript:;">
                                    <img src="/admin_store/images/tuiguang/50.png" />企业名片
                                </a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/wxPassport/userinfo/CompanyProfile.aspx">企业名片</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="5">
                                <a href="javascript:;">
                                    <img src="/admin_store/images/gongzhonghao/64.png" />发布记录
                                </a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class="memu-redirect" data-url="/wxPassport/product/list_wx_log.aspx">微信群发记录</a></dd>
                                </dl>
                            </li>
                        </ul>
                    </div>

                    <!--朋友圈推广-->
                    <div class="nav-list-rank nav_5 hide">
                        <ul class="layui-nav layui-nav-tree nav-list">
                            <li class="layui-nav-item layui-nav-itemed" menu-ul="0">
                                <a href="javascript:;">
                                    <img src="/admin_store/images/wjx/72.png" />朋友圈推广
                                </a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class='memu-redirect' data-url="/wxPassport/wjx/bind.html">微街秀</a></dd>
                                    <dd menu-li="1"><a class='memu-redirect' data-url="/wxPassport/htmldoc/guangdiantong.html">广点通</a></dd>
                                </dl>
                            </li>
                        </ul>
                    </div>

                    <!--小程序网站-->
                    <div class="nav-list-rank nav_6 hide">
                        <ul class="layui-nav layui-nav-tree nav-list">
                            <li class="layui-nav-item layui-nav-itemed" menu-ul="0">
                                <a href="javascript:;">
                                    <img src="/admin_store/images/pc_admin/1.jpg" />小程序网站
                                </a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class="memu-redirect" data-url="/storeadmin/pc/preview">首页定制</a></dd>
                                    <dd menu-li="1"><a class="memu-redirect" data-url="/storeadmin/pc/widgetconfiglist?code=pc_index_nav">网站导航</a></dd>
                                    <dd menu-li="2"><a class="memu-redirect" data-url="/storeadmin/pc/widgetconfiglist?code=pc_index_banner">顶部轮播</a></dd>
                                    <dd menu-li="3"><a class="memu-redirect" data-url="/storeadmin/pc/widgetconfiglist?code=index_product">首页商品</a></dd>
                                    <dd menu-li="4"><a class="memu-redirect" data-url="/storeadmin/pc/WidgetConfigList?code=pc_index_news">首页内容</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="1">
                                <a href="javascript:;">
                                    <img src="/admin_store/images/pc_admin/2.jpg" />资源下载
                                </a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class="memu-redirect" data-url="/wxPassport/htmldoc/pc/pc_download.html">资源下载</a></dd>
                                </dl>
                            </li>
                        </ul>
                    </div>

                    <!--代理菜单-->
                    <div class="nav-list-rank nav_7 hide">
                        <ul class="layui-nav layui-nav-tree nav-list">
                            <li class="layui-nav-item layui-nav-itemed" menu-ul="0">
                                <a href="javascript:;">
                                    <img src="/admin_store/images/agent/1.jpg" />客户管理
                                </a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0" class="gtype_15 gtype_16 gtype_17 gtype_19 gtype_20 hide"><a class="memu-redirect" data-url="/wxPassport/agent/weapp_clientlist.aspx">小程序客户</a></dd>
                                    <dd menu-li="1" class="gtype_13 hide"><a class="memu-redirect" data-url="/wxPassport/agent/wjb_clientlist.aspx">微街宝客户</a></dd>
                                    <dd menu-li="2" class="gtype_9 hide"><a class="memu-redirect" data-url="/wxPassport/agent/dyb_clientlist.aspx">订阅宝客户</a></dd>
                                    <dd menu-li="3" class="gtype_11 hide"><a class="memu-redirect" data-url="/wxPassport/agent/weixin-list.aspx">微推广客户</a></dd>
                                    <dd menu-li="4" menu-li="0"><a class="memu-redirect" data-url="/wxPassport/agent/modifyinfo_dyb.aspx">代理商信息</a></dd>
                                </dl>
                            </li>

                            <li class="layui-nav-item" menu-ul="1">
                                <a href="javascript:;">
                                    <img src="/admin_store/images/agent/2.jpg" />交易记录
                                </a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0"><a class="memu-redirect" data-url="/wxPassport/financial/bankroll.aspx">所有记录</a></dd>
                                    <dd menu-li="1"><a class="memu-redirect" data-url="/wxPassport/financial/bankroll.aspx?direction=1">收入记录</a></dd>
                                    <dd menu-li="2"><a class="memu-redirect" data-url="/wxPassport/financial/bankroll.aspx?direction=2">支出记录</a></dd>
                                    <dd menu-li="3"><a class="memu-redirect" data-url="/wxPassport/financial/bankroll.aspx?direction=3">赠送收支记录</a></dd>
                                </dl>
                            </li>

                            <div class="agent-kind hide">
                                <li class="layui-nav-item" menu-ul="3">
                                    <a href="javascript:;">
                                        <img src="/admin_store/images/agent/4.jpg" />经销商管理
                                    </a>
                                    <dl class="layui-nav-child">
                                        <dd menu-li="0"><a class="memu-redirect" data-url="/wxPassport/agent/down-list.aspx?grouptype=15">经销商列表</a></dd>
                                        <dd menu-li="1"><a class="memu-redirect" data-url="/wxPassport/agent/bankroll.aspx">收支记录</a></dd>
                                    </dl>
                                </li>
                            </div>

                            <li class="layui-nav-item" menu-ul="2">
                                <a href="javascript:;">
                                    <img src="/admin_store/images/agent/3.jpg" />代理商公告
                                </a>
                                <dl class="layui-nav-child">
                                    <dd menu-li="0" class="gtype_15 gtype_16 gtype_17 gtype_19 gtype_20 hide"><a class="memu-redirect" data-url="/wxPassport/agent/announcement.aspx">代理商公告</a></dd>
                                </dl>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>

            <!-- 内容主体区域 -->
            <div class="layui-body">
                <div style="width:1010px; height:100%;overflow-x:hidden;">
                    <div style="width:1000px">
                        <iframe id="frameRight" name="frameRight" src="" width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" onload="iFrameHeight('frameRight')"></iframe>
                    </div>
                </div>
            </div>
            <div class="seven" style="display:none"><div><a href="#" class="help" target="_blank"><img src="/admin_store/images/yunying/12.png">需要帮助请点我</a></div></div>
        </div>
    </div>

    <script src="/components/layui/layui.js" charset="utf-8"></script>
    <script>
        //layui 加载
        layui.use('element', function () {
            var element = layui.element;
        });
    </script>
    <script type="text/javascript">
        var isWeapp = false, isDis = false, isAgent = false, isProject = false, is_Q3_Project=false;

        $(function () {
            if (!isLogin()) { toLogin(); return; }
            loadIframe();
            loadGroup();
            loadAgentMenu();
            bindBtn();
            setTimeout(function () { loadFD(); }, 500);
            setTimeout(function () { loadHelp() }, 500);     //帮助中心
        })

        function bindBtn() {
            //导航栏事件
            $('.content-title-item').click(function () {
                //选中导航条
                $('.content-title-item').removeClass("on");
                $(this).addClass("on");
                $(".content-title-item img").each(function () {
                    var old_src = $(this).attr("data-oldimg");
                    if (old_src != null)
                        $(this).attr("src", old_src);
                    else
                        $(this).attr("data-oldimg", $(this).attr("src"));
                });

                //菜单栏索引
                var index = $(this).attr("data-index");
                //显示菜单组
                $(".nav-list-rank").addClass("hide");
                $(".nav_" + index).removeClass("hide");

                //选中菜单
                var hash = document.location.hash == '' ? "" : document.location.hash.substring(1);
                var nav_index = getUrlParam(hash, "nav");
                var menu_ul = getUrlParam(hash, "menu_ul");     //菜单列表索引
                var menu_li = getUrlParam(hash, "menu_li");     //选中菜单索引     

                $(".nav_" + nav_index + " .layui-nav-item").each(function () {
                    if ($(this).attr("menu-ul") == menu_ul) {
                        //选中菜单列表
                        $(this).addClass("layui-nav-itemed");
                        $(this).find("dd").each(function () {
                            //选中菜单
                            if ($(this).attr("menu-li") == menu_li)
                                $(this).addClass("layui-this");
                        });
                    }
                });
            });

            //账户点击事件
            $(".memu-redirect").click(function () {
                $(".layui-this").removeClass("layui-this"); //清除选择中菜单项
                redirectFrame($(this));//跳转页面
            });
        }
        
        function parentShowPcPreview() {
            var right = $(".seven").css("right");
            var that = $(".pcPreview");
            that.css("right", right);
            that.css("display", "");
        }

    </script>
</body>
</html>
